<?php
class CategoryAction extends CommonAction{
	
	public function cat_list(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'栏目列表','href'=>U('Category/cat_list'),'separator'=>'',),
		);
		$data['action'] = U('Category/cat_list?action=submit');	
		if(!empty($_GET['action']) && $_GET['action'] == 'submit'){
		}
		
		//$data['list'] = $this->get_cate('list',0,'');
		$this->assign('data',$data);
		$this->display();
	}
	
	public function cat_add(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'添加栏目','href'=>U('Category/cat_add'),'separator'=>'',),
		);
		$data['action'] = U('Category/cat_add?action=submit');
		if(!empty($_GET['action']) && $_GET['action'] == 'submit'){
		}
		$data['cat_option'] = $this->get_cate('option',0,'upid');
		$this->assign('data',$data);
		$this->display('cat_edit');
	}
	
	public function cat_edit(){
		$data['breadcrumbs'] = array(
		     array('text'=>'后台首页','href'=>'#','separator'=>'>>',),
		     array('text'=>'栏目修改','href'=>U('Category/cat_edit'),'separator'=>'',),
		);
		$data['action'] = U('Category/cat_edit?action=submit');
		if(!empty($_GET['action']) && $_GET['action'] == 'submit'){
		}
		$this->assign('data',$data);
		$this->display();
	}
}
?>